/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import interfaces.EventInterface;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 *
 * @author Anders Bo Rasmussen
 */
public class ServerEvent extends UnicastRemoteObject implements EventInterface {

    private final String message;

    public ServerEvent(String message) throws RemoteException {
        this.message = message;
    }

    @Override
    public String getMessage() throws RemoteException {
        return message;

    }

}
